#include<bits/stdc++.h>
using namespace std;
int main()
{
	int n, m;
	while (cin >> n >> m) {
		int sum = 0;
		int temp = 2;
		int flag = 0;
		for (int i = 1; i <= n; i++) {
			sum += temp;
			temp += 2;
			if (i % m == 0) {
//				flag = 1;
				flag ++;
				cout << sum * 1.0 / m << " ";
				sum = 0;

			}
		}
		if (sum != 0) {
			cout << sum * 1.0 / (n - flag * m) << endl;
		}
	}
	return 0;
}
